package org.objective.service;

import org.common.service.Service;
import org.objective.base.BaseFieldInfo;
import org.objective.base.BaseObjectInfo;
import org.objective.base.BaseTypeInfo;
import org.objective.dal.saver.SaverServiceProvider;

/**
 *
 * @author gus
 */
@Service(serviceProvider=SaverServiceProvider.class)
public interface Saver
{
    public void insertObject(BaseObjectInfo objectInfo) throws Exception;

    public void deleteObject(long id) throws Exception;

    public void insertType(BaseTypeInfo typeInfo) throws Exception;

    public void updateType(BaseTypeInfo typeInfo) throws Exception;

    public void deleteType(long id) throws Exception;

    public void deleteField(long id) throws Exception;

    public void insertField(BaseFieldInfo fieldInfo) throws Exception;

    public void updateField(BaseFieldInfo fieldInfo) throws Exception;
}
